﻿/*
 * 2023/3/14
 * 日志中间件（中间件在管道中处理请求一个类）
 * 
 * **/
namespace _2008A.PH5._0221_0317.FuXi.API.MyMiddleware
{
    public class LogMiddleware
    {
        RequestDelegate _requestDelegate;

        public LogMiddleware(RequestDelegate requestDelegate)
        {
            _requestDelegate = requestDelegate;
        }

        public  void InvokeAsync(HttpContext content)
        {
            _requestDelegate.Invoke(content);
        }
    }
}
